/**
 * @author:linjiye
 * @date: 2024/12/25
 * @desc:
 **/

import { Stack } from 'expo-router';
import PageTopBackBtn from "@/components/PageTopBackBtn";
import React from 'react';

export default function RootLayout() {
    return (
        <Stack
            screenOptions={{
                // headerStyle: {
                //     backgroundColor: '#f4511e',
                // },
                // headerTintColor: '#fff',
                headerTitleStyle: {
                    fontWeight: '600',
                    fontSize: 17
                },
            }}
        >
            <Stack.Screen name="index" options={{headerShown: false}}/>
            <Stack.Screen name="result" options={{
                headerShown: true,
                headerTitle: '视频文案生成结果',
                headerTitleAlign: 'center',
                headerTransparent: true,
                headerStyle: {
                    backgroundColor: 'transparent',
                    elevation: 0, // Android 阴影
                    shadowOpacity: 0, // iOS 阴影
                },
                headerLeft: (props) => (<PageTopBackBtn {...props} />)
            }}/>
        </Stack>
    );
}
